<%@ page contentType="text/html;charset=UTF-8" %>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet" href="${resource(dir: 'css', file: 'login.css')}" type="text/css">
    <link rel="stylesheet" href="${resource(dir: 'css', file: 'stmain.css')}" type="text/css">
    <title>SimTester</title>
  </head>
  <body>
    <div id="main_title">
      <p>SimTester</p>
    </div>
    <div id="mid_strip" class="shadow">
      <div id="login_block">
        <g:form name="loginform" controller="user" action="login">
          <table id="form_table">
            <tr>
              <td class="large_label"><label>Username</label></td>
              <td class="large_field"><input type="text" name="username" size="14"/></td>
            </tr>
            <tr>
              <td class="large_label"><label>Password</label></td>
              <td class="large_field"><input type="password" name="password" size="14"/></td>
            </tr>
          </table>
          <div class="clear"></div>
          <div id="login_button">
            <input class="button green large" name="login" type="submit" value="Login"/>
          </div>
        </g:form>
        <div id="reg_button">
          <g:link class="button orange largelink" name="register" controller="user" action="register">Register</g:link>
        </div>
        <div class="clear"></div>
        <div>
          <g:if test="${flash.error}">
            <p class="error"><g:message code="${flash.error}"/></p>
          </g:if>
          <g:if test="${flash.message}">
            <p class="message"><g:message code="${flash.message}"/></p>
          </g:if>
        </div>
      </div>
    </div>
  </body>
</html>